import java.util.Scanner;

public class HomeWorkDemo05 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        float sum = 0.0f;
        float max = 0.0f;
        float min = 101.0f;
        for (int i = 0; i < 5; i++) {
            System.out.println("请输入成绩");
            float garde = scanner.nextFloat();
            if (garde < 0 || garde > 100) {
                i--;
            } else {
                if (garde > max) {
                    max = garde;
                }

                if (garde < min) {
                    min = garde;
                }

                sum += garde;

            }
        }
        System.out.println(sum / 5);
        System.out.println(max);
        System.out.println(min);

    }

}
